﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using RuleCode.Table;
namespace chatblog.bbsmanage
{
    public partial class bbsm : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                dealrequest();
            }
        }
        private void dealrequest()
        {
            cbarea area;
            //area = cbarea.getcurarea();
            area = cbarea.Find(" cbuserid = '" + AliApi.appUserId + "'"
                );
            if (area.Count < 1)
            {
                MessageBox.Show(this.Page, "请先创建站点.");
                Response.Redirect(ResolveUrl("~/bbsmanage/newsiteapp.aspx"));
            }
            Literal_logolink.Text = area.getlogolink();

        }
    }
}
